import { tableServiceInterface } from "@/common/interface/table.interface";
import {
  $systemUserList,
  $systemUserDetail,
  $systemUserAdd,
  $systemUserUpdate,
  $systemUserChangeStatus,
  $systemUserDelete,
  $systemUserResetPwd,
} from "@/apis/system/user/user";
import {
  systemUserListInterface,
  systemUserAddInterface,
  systemUserUpdateInterface,
  systemUserChangeStatusInterface,
  systemUserResetPwdInterface,
} from "@/apis/system/user/user.interface";
export default class UserService implements tableServiceInterface {
  async getTable(e: systemUserListInterface): Promise<any> {
    return $systemUserList(e);
  }
  deleteMultiple(e: Array<number>): Promise<any> {
    return $systemUserDelete(e);
  }
  edit(e: systemUserUpdateInterface): Promise<any> {
    return $systemUserUpdate(e);
  }
  add(e: systemUserAddInterface): Promise<any> {
    return $systemUserAdd(e);
  }
  detail(id: number): Promise<any> {
    return $systemUserDetail(id);
  }
  // 修改启用状态
  statusChange(e: systemUserChangeStatusInterface): Promise<any> {
    return $systemUserChangeStatus(e);
  }
  // 修改密码
  passwordChange(e: systemUserResetPwdInterface): Promise<any> {
    return $systemUserResetPwd(e);
  }
}